package owlapps2012.owlToSql.base;

public class OWLRestriction
{
	protected String expression;
	protected String transformedSqlFragment = " ";
	protected String sqlFragmentToTransform = "";
	protected int indexOfOpeningBracket;
	protected int indexOfClosingBracket;
	protected int startPoint;
	protected boolean isTransformed;
	
	public OWLRestriction(String expression, int indexOfOpeningBracket, int indexOfClosingBracket, int cardinality, int startPoint)
	{
		this.expression = expression;
		this.indexOfClosingBracket = indexOfClosingBracket;
		this.indexOfOpeningBracket = indexOfOpeningBracket;
		this.startPoint = startPoint;
	}
	
	public int getStartPoint() {
		return startPoint;
	}

	public void setStartPoint(int startPoint) {
		this.startPoint = startPoint;
	}

	public String getExpression() {
		return expression;
	}
	public void setExpression(String expression) {
		this.expression = expression;
	}
	public int getIndexOfOpeningBracket() {
		return indexOfOpeningBracket;
	}
	public void setIndexOfOpeningBracket(int indexOfOpeningBracket) {
		this.indexOfOpeningBracket = indexOfOpeningBracket;
	}
	public int getIndexOfClosingBracket() {
		return indexOfClosingBracket;
	}
	public void setIndexOfClosingBracket(int indexOfClosingBracket) {
		this.indexOfClosingBracket = indexOfClosingBracket;
	}
	public String getTransformedSqlFragment() {
		return transformedSqlFragment;
	}
	
	public void setTransformedSqlFragment(String transformedSqlFragment) {
		this.transformedSqlFragment = transformedSqlFragment;
	}
	public String getSqlFragmentToTransform() {
		return sqlFragmentToTransform;
	}

	public void setSqlFragmentToTransform(String sqlFragmentToTransform) {
		this.sqlFragmentToTransform = sqlFragmentToTransform;
	}

	public boolean isTransformed() {
		return isTransformed;
	}

	public void setTransformed(boolean isTransformed) {
		this.isTransformed = isTransformed;
	}

}
